package com.example.sqlexport.service;

import com.example.sqlexport.entity.DatabaseConfig;
import com.example.sqlexport.model.request.TestConnectionRequest;

import java.util.List;

public interface DatabaseConfigService {
    List<DatabaseConfig> findAll();
    
    DatabaseConfig findById(Long id);
    
    void save(DatabaseConfig config);
    
    void update(DatabaseConfig config);
    
    void delete(Long id);

    boolean testConnection(TestConnectionRequest request);
} 